package org.jeecg.modules.nikeProject.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.nikeProject.entity.SportsProjectFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.nikeProject.entity.vo.OssFileVO;

/**
 * @Description: 案例上传视频，图片
 * @Author: jeecg-boot
 * @Date:   2024-12-12
 * @Version: V1.0
 */
public interface SportsProjectFileMapper extends BaseMapper<SportsProjectFile> {

    List<OssFileVO> getOssUrl(@Param("projectId")String projectId, @Param("fileType")String fileType);

    void batchInsert(@Param("list") List<SportsProjectFile> list);
    void batchInsertParse(@Param("list") List<SportsProjectFile> list);

    List<OssFileVO> getSchoolOssFiles(@Param("projectId")String projectId,
                                      @Param("workInfoSchoolId") String workInfoSchoolId,
                                      @Param("sourceType") String sourceType);

    int updateByProjectId(@Param("projectId") String projectId, @Param("username") String username);

    OssFileVO getSourceType(@Param("projectId") String projectId, @Param("ossFileId") String ossFileId);
}
